package com.foxire.extendsdemo;

// 父类
// 继承的好处：1.代码复用2.继承关系
public class People {
    private String name;
    private char sex;

    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }
    public char getSex(){
        return sex;
    }
    public void setSex(char sex){
        this.sex = sex;
    }

}
